package com.hmsproject.db.inmemorydb;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import com.hmsproject.datastructures.event.Event;
import com.hmsproject.dummydata.EventDummyData;

@ManagedBean
@SessionScoped
public class EventListProducer {
	
	private EventDummyData dummyData;
	
	public List<Event> getEventList(String locationName){
		return this.dummyData.eventMap.get(locationName);
	}
	
	@PostConstruct
	public void init(){
		dummyData = new EventDummyData();
		dummyData.init();
	}
	
	

}
